const inquirer = require('inquirer');
const commit = require('../commit');
const config = require('../config/config.json');
const createQuestions = require('../util/createQuestions');

function cli() {

  inquirer.prompt(createQuestions(config)).then(answer => commit(answer));

}

module.exports = cli;